package com.credithc.customers.base.codes;

import com.credithc.baseserv.core.annontion.Msg;
import com.credithc.baseserv.core.codes.CoreCodes;

/**
 * @author zhukai
 * @date 2018/11/29 9:41
 */
public class CustomerCodes extends CoreCodes {

    @Msg("请求时间超时")
    public static final Integer REQUEST_TIME_OUT = 2000;

    @Msg("请求流水号重复")
    public static final Integer REQUESTNO_REPEAT = 2001;

    @Msg("验签失败")
    public static final Integer SIGN_FAIL = 2002;

    @Msg("验签异常")
    public static final Integer SIGN_EXCEPTION = 2003;

    @Msg("客户号不存在")
    public static final Integer CUSTOMERNO_NOT_EXIST = 2103;

    @Msg("用户号不存在")
    public static final Integer PRE_CUSTOMERNO_NOT_EXIST = 2302;

    @Msg("用户号已转化")
    public static final Integer PRE_CUSTOMERNO_CONVERTED = 2303;

    @Msg("用户不是恒昌客户")
    public static final Integer ZNKF_ERROR_QUERY = 100;


    @Msg("参数校验错误")
    public static final Integer CORE_VALIDATE_ERROR = 2501;

    @Msg("参数校验错误")
    public static final Integer PARAM_VALIDATE_ERROR = 2400;

    @Msg("业务校验错误")
    public static final Integer BIZ_VALIDATE_ERROR = 2401;

    @Msg("调用短信服务错误")
    public static final Integer SMS_INTERFACE_ERROR = 2500;

    @Msg("调用三方接口异常")
    public static final Integer BIGDATA_INTERFACE_ERROR = 2600;


    @Msg("读取请求参数数据流出错")
    public static final Integer READ_REQUEST_ERROR = 2801;

    @Msg("定时任务执行失败")
    public static final Integer SCHEDULE_EXECUTE_FAIL = 2802;

    @Msg("请求参数格式错误")
    public static final Integer FAST_JSON_ERROR = 2805;

    //数据库相关
    @Msg("系统错误，数据库出错")
    public static final Integer DATABASE_ERROR = 2900;

    @Msg("系统错误，插入数据库出错")
    public static final Integer DATABASE_ERROR_INSERT = 2901;

    @Msg("系统错误，查询数据库出错")
    public static final Integer DATABASE_ERROR_QUERY = 2902;

    @Msg("系统错误，更新数据库出错")
    public static final Integer DATABASE_ERROR_UPDATE = 2903;

    @Msg("系统错误，删除数据库出错")
    public static final Integer DATABASE_ERROR_DELETE = 2904;

    @Msg("成功")
    public static final Integer HEALTH_CHECK_SUCCESS = 200;

    @Msg("数据库连接失败")
    public static final Integer HEALTH_CHECK_DB_FAIL = 404;

    @Msg("redis连接失败")
    public static final Integer HEALTH_CHECK_REDIS_FAIL = 404;

}
